home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #ifdef AMIGA
- #include <gfxamiga.h>
- #else
- #include <gfx.h>
- #endif
-
- help()
- {
- printf("hco [-out drivername] [-iff filename] [-hpgl filename] [-ps filename]\n");
- printf("make hardcopy of LISE picture\n");
- printf("options:\n");
- printf(" -out string sets another printer driver\n");
- printf(" -iff filename print Amiga IFF (bitmap) output to file\n");
- printf(" -hpgl filename print HP-GL output to file\n");
- printf(" -ps filename print PostScript output to file\n");
- printf(" -dxf filename print DXF (exchangable CAD format) to file\n");
- printf(" -adraw filename print Aegis Draw (Amiga CAD Format) to file\n");
- printf(" -bold make all lines twice as thick\n");
- }
-
- main(argc,argv)
- int argc;
- char *argv[];
- {
- int n,m,i;
- char s[80],z[80];
- float a;
-
-
- n = 0;
- if(checkopt(argc,argv,"-bold",s)) n = 128;
-
- strcpy(s,"");
- if(checkopt(argc,argv,"-out",s)) strcpy(s,z);
-
- tekopen();
-
- if(checkopt(argc,argv,"-iff",s)) {
- sprintf(z,"%d %s",4 + n,s); special_gfx(z);
- close(_tek4014);
- exit(0);
- }
-
- if(checkopt(argc,argv,"-hpgl",s)) {
- sprintf(z,"2 %s",s); special_gfx(z);
- close(_tek4014);
- exit(0);
- }
-
- if(checkopt(argc,argv,"-dxf",s)) {
- sprintf(z,"6 %s",s); special_gfx(z);
- close(_tek4014);
- exit(0);
- }
-
- if(checkopt(argc,argv,"-adraw",s)) {
- sprintf(z,"5 %s",s); special_gfx(z);
- close(_tek4014);
- exit(0);
- }
-
- if(checkopt(argc,argv,"-ps",s)) {
- sprintf(z,"3 %s",s); special_gfx(z);
- close(_tek4014);
- exit(0);
- }
-
- sprintf(z,"%d %s",1 + n,s); special_gfx(z);
- close(_tek4014);
- exit(0);
- }
-